package com.qiaofang.collectmanage.service;
import java.util.List;

import com.qiaofang.collectmanage.domain.CollectRule;
import com.qiaofang.collectmanage.stub.bean.*;
import com.qiaofang.common.model.page.PageDTO;

/**
* Created by generator on 2018-8-1 13:49:21
*/
public interface CrawlerTaskService {

    public CrawlerTaskDTO getCrawlerTaskByUuid(String uuid);

    public CrawlerTaskDTO getCrawlerTaskByTask(CrawlerTaskDTO dto);

    public int saveCrawlerTask(SaveCrawlerTaskDTO dto);

    public int updateCrawlerTask(UpdateCrawlerTaskDTO dto);


    public int removeCrawlerTaskByUuid(String uuid);

    public List<CrawlerTaskDTO> listCrawlerTask(ListCrawlerTaskDTO dto);

    public List<CrawlerTaskDTO> listCrawlerTaskByUuids(List<String> uuidList);
    public Long countCrawlerTask(CrawlerTaskDTO dto);

    public List<CrawlerTaskDTO> searchCrawlerTaskByPermission(SearchCrawlerTaskDTO dto, PageDTO page);

    public Long countCrawlerTaskByPermission(SearchCrawlerTaskDTO dto);


    List<CrawlerTaskRelatedDTO> listCrawlerCollectRuleByIds(List<Integer> ids);

    public void clearCrawlerCollectCache(List<Integer> ids);
}
